From: Keir Fraser Date: Sat, 31 Mar 2007 15:39:14 +0000 (+0100) Subject: linux gntdev: Mark x86-specific code as such with ifdef. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15270^2~19 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c15c303a405f2e2453ecdf81908f962a7769d924;p=xen.git linux gntdev: Mark x86-specific code as such with ifdef. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c b/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c index fe1e98b2f1..8716e8aa55 100644 --- a/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c +++ b/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c @@ -518,12 +518,14 @@ static int gntdev_mmap (struct file *flip, struct vm_area_struct *vma) */ vma->vm_flags |= VM_DONTCOPY; +#ifdef CONFIG_X86 /* This flag ensures that the page tables are not unpinned before the * VM area is unmapped. Therefore Xen still recognises the PTE as * belonging to an L1 pagetable, and the grant unmap operation will * succeed, even if the process does not exit cleanly. */ vma->vm_mm->context.has_foreign_mappings = 1; +#endif for (i = 0; i < size; ++i) {